import 'package:fish_redux/fish_redux.dart';

enum SubjectEditAction {
  action,
  onDone,
  onSubject,
  selectType,
  onEdit,
  edit,
}

class SubjectEditActionCreator {
  static Action onAction() {
    return const Action(SubjectEditAction.action);
  }

  static Action onDone() {
    return const Action(SubjectEditAction.onDone);
  }

  static Action onSubject() {
    return const Action(SubjectEditAction.onSubject);
  }

  static Action selectType(String type) {
    return Action(SubjectEditAction.selectType, payload: type);
  }

  static Action onEdit(String action) {
    return Action(SubjectEditAction.onEdit, payload: action);
  }

  static Action edit(Map<String, dynamic> ret) {
    return Action(SubjectEditAction.edit, payload: ret);
  }
}
